<?xml version="1.0" encoding="UTF-8"?>
<openerp>
	<data>

		<record id="account.menu_finance_bank_and_cash" model="ir.ui.menu">
			<field name="groups_id" eval="[(6,0,[ref('so_workflowchange.group_non_user')])]"/>
		</record>

		<record id="inh_invoice_supplier_form_max_ui" model="ir.ui.view">
			<field name="name">inh.invoice.supplier.form.max.ui</field>
			<field name="model">account.invoice</field>
			<field name="inherit_id" ref="account.invoice_supplier_form"/>
			<field name="arch" type="xml">
				<button name="%(account.action_account_change_currency)d" position="replace">
					<button name="%(account.action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}"  groups="so_workflowchange.group_non_user"/>
				</button>
				<field name="date_due" position="replace">
					<field name="date_due" groups="so_workflowchange.group_non_user"/>
				</field>
				<field name="partner_bank_id" position="replace">
					<field groups="so_workflowchange.group_non_user" domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)"/>
				</field>
				<field name="payment_term" position="replace">
					<field name="payment_term" widget="selection" groups="so_workflowchange.group_non_user"/>
				</field>
			</field>
		</record>

		<record id="inh_invoice_form_max_ui" model="ir.ui.view">
			<field name="name">inh.invoice.form.max.ui</field>
			<field name="model">account.invoice</field>
			<field name="inherit_id" ref="account.invoice_form"/>
			<field name="arch" type="xml">
				<button name="%(account.action_account_change_currency)d" position="replace">
					<button name="%(account.action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}"  groups="so_workflowchange.group_non_user"/>
				</button>
				<field name="date_due" position="replace">
					<field name="date_due" groups="so_workflowchange.group_non_user"/>
				</field>
				<field name="partner_bank_id" position="replace">
					<field groups="so_workflowchange.group_non_user" domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id"/>
				</field>
				<field name="payment_term" position="replace">
					<field name="payment_term" widget="selection" groups="so_workflowchange.group_non_user"/>
				</field>
				<button name="invoice_proforma2" position="replace">
					<button name="invoice_proforma2" states="draft" string="PRO-FORMA" icon="terp-gtk-media-pause" groups="so_workflowchange.group_non_user"/>
				</button>
			</field>
		</record>
	</data>
</openerp>